import request from '@/utils/requestByForm'

export function mallList() {
  return request({
    url: 'api/mall-list',
    method: 'post'
  })
}

export function updateAddress(data) {
  return request({
    url: 'api/update-address',
    method: 'post',
    data
  })
}

export function deleteAddressById(data) {
  return request({
    url: 'api/delete-address',
    method: 'post',
    data
  })
}

export function updateBaseMall(data) {
  return request({
    url: 'api/update-base-mall',
    method: 'post',
    data
  })
}

export function delTemplateById(data) {
  return request({
    url: 'api/del-template',
    method: 'post',
    data
  })
}

export function updateFreight(data) {
  return request({
    url: 'api/update-freight',
    method: 'post',
    data
  })
}

export function freightList(data) {
  return request({
    url: 'api/freight-list',
    method: 'post',
    data
  })
}
